Operator_And Method
Used to overload the And function, providing custom functionality.
Syntax
Notes
Create an Operator_And function in a class to specify the functionality of the And operator for that class. Whenever you use the And operator in your code to operate on two instances of the class, your Operator_And function will be called.
In the function, the Self instance is one of the operands and the other operand is passed as a parameter. Self is assumed to be on the left.
Example
Suppose you define a class myResult with the property a as Boolean. Operator_And is defined as:
See Also
And operator, Operator_AndRight function.